package com.skyline.jfs.namespace.service;

import java.util.List;

import com.skyline.jfs.namespace.model.JFSDirectory;
import com.skyline.jfs.namespace.model.JFSFile;
import com.skyline.jfs.namespace.model.JFSLsResult;

public interface JFSDirectoryService {

	public List<JFSDirectory> lsDir(Long id);

	public List<JFSFile> lsFile(Long id);

	public JFSLsResult ls(Long id);

	public JFSLsResult ls(String dir);

	public void createDir(Long parent, String path, String name,
			Integer permission);

	public void createDir(String dir);

	public void rm(Long id);

	public void rm(String dir);

	public void modify(String dir);

	public void rename(Long id, String newName);

	public void rename(String dir, String newName);

	public JFSDirectory get(Long id);

	public JFSDirectory get(String dir);

}
